package cn.circle.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.circle.system.dao.IOrderDeatilDao;
import cn.circle.system.model.CommodityInfo;
import cn.circle.system.model.OrderDeatil;
import cn.circle.system.service.IOrderDeatilService;

@Service
public class OrderDeatilServiceImpl implements IOrderDeatilService {

	
	@Autowired
	private IOrderDeatilDao orderDeatilDao;
	
	@Override
	public void save(OrderDeatil o) {
		// TODO Auto-generated method stub
		orderDeatilDao.save(o);
	}

	@Override
	public List<OrderDeatil> getOrderDeatil(String orderNo) {
		// TODO Auto-generated method stub
		
		String hql="from OrderDeatil c where c.dtlOrderNo='"+orderNo+"'";
		List<OrderDeatil> list=orderDeatilDao.find(hql);
		return list;
	}

}
